\section{fsm\+\_\+pdo.\+h File Reference}
\label{fsm__pdo_8h}\index{fsm\+\_\+pdo.\+h@{fsm\+\_\+pdo.\+h}}


Ether\+C\+AT P\+DO configuration state machine structures.  


\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \textbf{ ec\+\_\+fsm\+\_\+pdo}
\begin{DoxyCompactList}\small\item\em P\+DO configuration state machine. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef struct \textbf{ ec\+\_\+fsm\+\_\+pdo} \textbf{ ec\+\_\+fsm\+\_\+pdo\+\_\+t}
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\label{fsm__pdo_8h_a5f2b78b06fa9e689c194ea1c3f42aa97}} 
void \textbf{ ec\+\_\+fsm\+\_\+pdo\+\_\+init} (\textbf{ ec\+\_\+fsm\+\_\+pdo\+\_\+t} $\ast$, \textbf{ ec\+\_\+fsm\+\_\+coe\+\_\+t} $\ast$)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\mbox{\label{fsm__pdo_8h_ae96b73951f5170af4977821f0fa65be7}} 
void \textbf{ ec\+\_\+fsm\+\_\+pdo\+\_\+clear} (\textbf{ ec\+\_\+fsm\+\_\+pdo\+\_\+t} $\ast$)
\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
\mbox{\label{fsm__pdo_8h_ace621d0396015a8cf1b820eee080855e}} 
void \textbf{ ec\+\_\+fsm\+\_\+pdo\+\_\+start\+\_\+reading} (\textbf{ ec\+\_\+fsm\+\_\+pdo\+\_\+t} $\ast$, \textbf{ ec\+\_\+slave\+\_\+t} $\ast$)
\begin{DoxyCompactList}\small\item\em Start reading the P\+DO configuration. \end{DoxyCompactList}\item 
\mbox{\label{fsm__pdo_8h_a03752ef4c9c2ddaf9074e08e777e66cb}} 
void \textbf{ ec\+\_\+fsm\+\_\+pdo\+\_\+start\+\_\+configuration} (\textbf{ ec\+\_\+fsm\+\_\+pdo\+\_\+t} $\ast$, \textbf{ ec\+\_\+slave\+\_\+t} $\ast$)
\begin{DoxyCompactList}\small\item\em Start writing the P\+DO configuration. \end{DoxyCompactList}\item 
int \textbf{ ec\+\_\+fsm\+\_\+pdo\+\_\+exec} (\textbf{ ec\+\_\+fsm\+\_\+pdo\+\_\+t} $\ast$, \textbf{ ec\+\_\+datagram\+\_\+t} $\ast$)
\begin{DoxyCompactList}\small\item\em Executes the current state of the state machine. \end{DoxyCompactList}\item 
int \textbf{ ec\+\_\+fsm\+\_\+pdo\+\_\+success} (const \textbf{ ec\+\_\+fsm\+\_\+pdo\+\_\+t} $\ast$)
\begin{DoxyCompactList}\small\item\em Get execution result. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Ether\+C\+AT P\+DO configuration state machine structures. 



\subsection{Typedef Documentation}
\mbox{\label{fsm__pdo_8h_ac13e2c6bdf50dbba47d2165f173322cd}} 
\index{fsm\+\_\+pdo.\+h@{fsm\+\_\+pdo.\+h}!ec\+\_\+fsm\+\_\+pdo\+\_\+t@{ec\+\_\+fsm\+\_\+pdo\+\_\+t}}
\index{ec\+\_\+fsm\+\_\+pdo\+\_\+t@{ec\+\_\+fsm\+\_\+pdo\+\_\+t}!fsm\+\_\+pdo.\+h@{fsm\+\_\+pdo.\+h}}
\subsubsection{ec\+\_\+fsm\+\_\+pdo\+\_\+t}
{\footnotesize\ttfamily typedef struct \textbf{ ec\+\_\+fsm\+\_\+pdo} \textbf{ ec\+\_\+fsm\+\_\+pdo\+\_\+t}}

\begin{DoxySeeAlso}{See also}
\doxyref{ec\+\_\+fsm\+\_\+pdo}{p.}{structec__fsm__pdo} 
\end{DoxySeeAlso}


Definition at line 50 of file fsm\+\_\+pdo.\+h.



\subsection{Function Documentation}
\mbox{\label{fsm__pdo_8h_a8cce6186384635f1b22bd858a2e3904c}} 
\index{fsm\+\_\+pdo.\+h@{fsm\+\_\+pdo.\+h}!ec\+\_\+fsm\+\_\+pdo\+\_\+exec@{ec\+\_\+fsm\+\_\+pdo\+\_\+exec}}
\index{ec\+\_\+fsm\+\_\+pdo\+\_\+exec@{ec\+\_\+fsm\+\_\+pdo\+\_\+exec}!fsm\+\_\+pdo.\+h@{fsm\+\_\+pdo.\+h}}
\subsubsection{ec\+\_\+fsm\+\_\+pdo\+\_\+exec()}
{\footnotesize\ttfamily int ec\+\_\+fsm\+\_\+pdo\+\_\+exec (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+pdo\+\_\+t} $\ast$}]{fsm,  }\item[{\textbf{ ec\+\_\+datagram\+\_\+t} $\ast$}]{datagram }\end{DoxyParamCaption})}



Executes the current state of the state machine. 

If the state machine\textquotesingle{}s datagram is not sent or received yet, the execution of the state machine is delayed to the next cycle.

\begin{DoxyReturn}{Returns}
false, if state machine has terminated 
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em fsm} & P\+DO configuration state machine. \\
\hline
{\em datagram} & Datagram to use. \\
\hline
\end{DoxyParams}


Definition at line 164 of file fsm\+\_\+pdo.\+c.

\mbox{\label{fsm__pdo_8h_a89becd875564ec7524991e4e0b7ddd3e}} 
\index{fsm\+\_\+pdo.\+h@{fsm\+\_\+pdo.\+h}!ec\+\_\+fsm\+\_\+pdo\+\_\+success@{ec\+\_\+fsm\+\_\+pdo\+\_\+success}}
\index{ec\+\_\+fsm\+\_\+pdo\+\_\+success@{ec\+\_\+fsm\+\_\+pdo\+\_\+success}!fsm\+\_\+pdo.\+h@{fsm\+\_\+pdo.\+h}}
\subsubsection{ec\+\_\+fsm\+\_\+pdo\+\_\+success()}
{\footnotesize\ttfamily int ec\+\_\+fsm\+\_\+pdo\+\_\+success (\begin{DoxyParamCaption}\item[{const \textbf{ ec\+\_\+fsm\+\_\+pdo\+\_\+t} $\ast$}]{fsm }\end{DoxyParamCaption})}



Get execution result. 

\begin{DoxyReturn}{Returns}
true, if the state machine terminated gracefully 
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em fsm} & P\+DO configuration state machine. \\
\hline
\end{DoxyParams}


Definition at line 180 of file fsm\+\_\+pdo.\+c.

